<?php

namespace Mssae\SeoBundle\Menu ;

use Knp\Menu\FactoryInterface ;
use Symfony\Component\DependencyInjection\ContainerAware ;

class Builder extends ContainerAware
{
    public function mainMenu(FactoryInterface $factory, array $options)
    {
        $menu = $factory->createItem('root');
        //$menu->setUri($this->container->get('request')->getRequestUri()) ;
        //$menu->setCurrentUri($this->container->get('request')->getRequestUri()) ;
        //$menu->setCu
        
        $menu->addChild('Home', array('route' => 'home'));
        $menu->addChild('Projet', array(
                                      'route' => 'projet',
                                      'routeParameters' => array('page'=> 1)
                                      ));
        $menu->addChild('Annuaire', array(
                                      'route' => 'annuaire',
                                      'routeParameters' => array('page'=> 1)
                                      ));
        $menu->addChild('TypeAnnuaire', array(
                                      'route' => 'typeannuaire',
                                      'routeParameters' => array('page'=> 1)
                                      ));
        
        return $menu;
    }
}

?>
